package com.atguigu.spring5.proxy;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * @author : wenchao.long
 * @date : Created in 2020/10/29 17:28 周四
 * @description :
 */
public class BookProxy {

    public void before() {
        System.out.println("before...");
    }

    public void after() {
        System.out.println("after...");
    }

    public Object around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("around...之前");
        pjp.proceed();
        System.out.println("around...之后");
        return pjp;
    }
}
